package com.github.wxiaoqi.security.common.msg;

public enum ResponseCode {

    OK("0000", "请求成功"),
    INVALID_FIELDS("40001", "请求参数非法"),
    ABNORMAL_FIELDS("40002", "异常"),
    USER_NOTEXIST("40003", "用户不存在"),
    MER_NOTEXIST("40004", "商户不存在"),
    RESUM_NOTEXIST("40005", "简历不存在"),
    TASK_NOTEXIST("40006", "任务不存在"),
    CUST_NOTEXIST("40007", "会员不存在"),
    CUST_ACC_NOTEXIST("40008", "会员账户不存在"),
    MER_ACC_NOTEXIST("40009", "商户账户不存在"),
    RESUM_REPEAT_SEND("40010", "简历重复投递"),
    REPEAT_RECEIVER("40012", "任务重复领取"),
    //电话相同简历，被多次投递
    RESUM_REPEAT_SEND_USER("40011", "用户简历重复投递"),
    USER_FREEZE("40013", "用户被冻结"),
    CUST_FREEZE("40014", "会员被冻结"),
    MER_FREEZE("40015", "商户被冻结"),
    CUST_ACC_FREEZE("40016", "会员账户被冻结"),
    MER_ACC_FREEZE("40017", "商户账户被冻结"),
    
    
    SMS_SEND_FAIL("40020", "短信发送失败"),
    MOBILE_MATCH_FAIL("40021", "手机号错误"),
    SMS_CODE_MATCH_FAIL("40022", "短信验证码错误"),
    PWD_ERROR("40023", "密码错误"),
    PAY_PWD_ERROR("40024", "支付密码错误"),
    LOCK_USER_PWD("40025", "密码锁定"),
    MOBILE_REPEAT("40026", "手机号已注册"),
    VERIFY_ACC_AMT("40027", "账户余额校验错误"),
    ACC_BALANCE_INSUFFICIENT("40028", "账户余额不足"),
	
	/*****************************用户登录错误码***************************/
	USERINFO_NOTEXIST("40050","登录用户不存在"),
	USERNAME_NOTNULL("40051","登录用户不能为空"),
	PASSWORD_NOTNULL("40052","登录密码不能为空"),
	USERINFO_PWD_ERROR("40053","登录密码错误"),
	LOGIN_ERROR("40054","登录失败"),
	TOKEN_ISINVALID("40055","token失效"),
	PARAM_NOTNULL("40056","请求参数不能为空"),
	SIGN_NOTNULL("40057","签名不能为空"),
	SIGN_MATCH_FAIL("40058","签名验证失败"),
	
	/*****************************用户注册错误码***************************/
	USERINFO_ISEXIST("40060","登录已注册"),
	REGISTER_ERROR("40061","注册失败");
    private String code;
    private String message;

	private ResponseCode(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}


}
